package com.xxx.reflect;

import java.io.IOException;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/26  9:32
 * @Copyright
 */
public class RefDome {
    public static void main(String[] args) throws ClassNotFoundException {
        //获取student.class方式
        //1.创建student对象
        Student student = new Student();
        Class<? extends Student> aClass = student.getClass();//获取的类
        //2.
        Class<Student> studentClass = Student.class;
        //3.forName
        Class<?> aClass1 = Class.forName("com.xxx.reflect.Student");


    }

}
